#!/usr/bin/python
# -*- coding: UTF-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import os
import cv2
import time
import traceback
import numpy as np
from skimage import morphology
from skimage.measure import label, regionprops


def blob_analyse(image_input):
    label_img = label(image_input, neighbors=8, connectivity=2)
    all_connect_info = regionprops(label_img)
    for blob in all_connect_info:
        pass
    print("bigno...")


if __name__ == "__main__":
    path = r'C:\Users\admin\Desktop\dt\test.bmp'  # place path to your image here
    image_cv = cv2.imread(path, -1)
    blob_analyse(image_cv)








